#include <stdio.h>

int main(){
	int c,nl,nt,nk;
	nl = nt = nk = 0;

	while((c = getchar()) != EOF){
		if (c == '\n')
			++nl;
		if (c == '\t')
			++nt;
		if (c == ' ')
			++nk;
	}
	printf("行:%d,空格:%d,回车%d,制表符:%d\n",nl,nk,nl,nt);
}
